<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="/xbjy/">
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- Bootstrap CSS-->
		<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
		<!-- Font Awesome CSS-->
		<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
		<!-- Custom Font Icons CSS-->
		<link rel="stylesheet" href="css/font.css">
		<!-- theme stylesheet-->
		<link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
		<!-- Custom stylesheet - for your changes-->
		<link rel="stylesheet" href="css/custom.css">
		<link rel="stylesheet" href="bootstrap/css/bootstrap-select.min.css">
		<link rel="stylesheet" href="bootstrap/css/bootstrap-datepicker.min.css">
		<link rel="stylesheet" href="bootstrap/css/bootstrap-datetimepicker.css">
		<title>发布会议</title>
		<style>
			/*这个是这页面特有的，需要单独写出来*/
        .myTitle > input {
            float: right;
            margin-left: 15px;
        }

    </style>
	</head>
	<body>
		<div id="app">
			<header class="header" id="header">
				<nav class="navbar navbar-expand-lg">
					<div class="search-panel">
						<div class="search-inner d-flex align-items-center justify-content-center">
							<div class="close-btn">Close <i class="fa fa-close"></i></div>
							<form id="searchForm" action="#">
								<div class="form-group">
									<input type="search" name="search" placeholder="What are you searching for...">
									<button type="submit" class="submit">Search</button>
								</div>
							</form>
						</div>
					</div>
					<div class="container-fluid d-flex align-items-center justify-content-between">
						<div class="navbar-header">
							<!-- Navbar Header--><a href="home.html" class="navbar-brand">
								<div class="brand-text brand-big visible text-uppercase"><strong class="text-primary">小标</strong><strong>会议平台</strong></div>
								<div class="brand-text brand-sm"><strong class="text-primary">X</strong><strong>B</strong></div>
							</a>
							<!-- Sidebar Toggle Btn-->
							<button class="sidebar-toggle"><i class="fa fa-long-arrow-left"></i></button>
						</div>
						<div class="right-menu list-inline no-margin-bottom">
							<!-- Log out -->
							<div class="list-inline-item logout">
								<a id="logout" href="index.html" class="nav-link"><span class="d-none d-sm-inline">Logout </span></a>
							</div>
						</div>
					</div>
				</nav>
			</header>

			<div class="d-flex align-items-stretch">
				<!-- Sidebar Navigation-->
				<nav id="sidebar"></nav>
				<!-- Sidebar Navigation end-->
				<div class="page-content">
					<div class="page-header">
						<div class="container-fluid">
							<h2 class="h5 no-margin-bottom">发布会议</h2>
						</div>
					</div>

					<section class="no-padding-bottom">

						<div class="block-body">
							<form>
								<div class="form-group">
									<label class="form-control-label">标题</label>
									<input type="text" placeholder="会议标题" class="form-control" v-model="meeting.title">
								</div>
								<!--选择部门-->
								<div class="form-group">
									<label class="form-control-label">部门：</label>
									<select class="selectpicker" data-live-search="true" v-model="meeting.deptId"
											@change="selectUser">
										<option v-for="dept in depts" v-if="dept.users.length>0" :value="dept.deptId">{{dept.deptName}}</option>
									</select>
									<label class="form-control-label">抄送人：</label>
									<select class="selectpicker" id="users" data-live-search="true" multiple
											v-model="makeUsers">
										<option v-for="user in users" :value="user.id">{{user.realName}}</option>
									</select>
								</div>
								<!--开始时间-->
								<div class="form-group">
									<label class="form-control-label">开始时间</label>

									<input type="text" class="form-control" id="startTime" v-model="meeting.startTime"
										   data-date-format="yyyy-mm-dd hh:ii:ss">
								</div>
								<!--结束时间-->
								<div class="form-group">
									<label class="form-control-label">结束时间</label>

									<input type="text" class="form-control" id="endTime" v-model="meeting.endTime"
										   data-date-format="yyyy-mm-dd hh:ii:ss">
								</div>
								<div class="form-group">
									<label class="form-control-label">会议内容</label>
									<textarea class="form-control" rows="5" v-model="meeting.content"></textarea>
								</div>
								<div class="text-center form-group">
									<input type="button" @click="insertMeeting" value="发布" class="btn btn-primary">
									<input type="reset" value="清空" class="btn btn-info">
								</div>
							</form>
						</div>
					</section>

					<footer class="footer">
						<div class="footer__block block no-margin-bottom">
							<div class="container-fluid text-center">
								<p class="no-margin-bottom">Copyright &copy; 2019.Company <a href="#">东方标准</a></p>
							</div>
						</div>
					</footer>
				</div>
			</div>
		</div>
		<!-- JavaScript files-->
		<!-- JavaScript files-->
		<script src="vendor/jquery/jquery.min.js"></script>
		<script src="bootstrap/js/bootstrap-select.min.js"></script>
		<script src="bootstrap/js/bootstrap-datepicker.min.js"></script>
		<script src="bootstrap/js/bootstrap-datetimepicker.min.js"></script>
		<script src="vendor/popper.js/umd/popper.min.js"> </script>
		<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
		<script src="vendor/jquery.cookie/jquery.cookie.js"> </script>
		<script src="vendor/chart.js/Chart.min.js"></script>
		<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
		<script src="js/charts-home.js"></script>
		<script src="js/front.js"></script>
		<script src="js/custom.js"></script>
		<script src="js/layer.js"></script>
		<script src="js/vue-2.6.11.js"></script>
		<script src="js/axios-0.19.2.min.js"></script>
		<script src="js/jquery-cookie-1.4.1.js"></script>
		<script src="js/meeting/meeting_add.js"></script>
		<script>
			$(function() {
				$('#startTime').datetimepicker();
				$('#endTime').datetimepicker();
				$('#datetimepicker').datetimepicker();


			})
			//限制结束时间不能小于开始时间
			$("#startTime").datetimepicker().on("changeDate",function (ev) {
				$('#endTime').datetimepicker('setStartDate', $(this).val());
			});
		</script>
	</body>
</html>
<script>
	$(function(){
		$("#header").load("common/header");

		$("#sidebar").load("common/sidebar");
	});
</script>